package com.wf.atm.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Objects;

/**
 * @author mpk
 * @since 2024/6/10 10:09:49
 */

@Data
@AllArgsConstructor
public class RankVo {


    private String name;

    private String personId;//身份证

    private  double balance;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RankVo rankVo = (RankVo) o;
        return Double.compare(balance, rankVo.balance) == 0 && Objects.equals(name, rankVo.name) && Objects.equals(personId, rankVo.personId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, personId, balance);
    }
}
